<%@ include file="/common/taglibs.jsp"%>
<div class="summary-booklist ui-widget">
	<h1 class="ui-helper-reset ui-widget-header ui-corner-top booklist-header">
		<spring:message code="main.bestSellers"/>
	</h1>
	<div class="ui-widget-content ui-corner-bottom">
		<c:forEach items="${bestSellers}" var="book">
			<table class="single-book">
				<tr><td><a href="<spring:url value="/book/details.html">
				<spring:param name="bookId" value="${book.id}"/>
				</spring:url>"><img class="book-image" src="${book.image}"/></a></td></tr>
				<tr>
				<td><font class="book-price"><spring:message code="main.price"/><spring:message code="main.price.sign"/>
					${book.unitPrice}</font></td>
				</tr>
				<tr><td class="book-name">${book.name}</td></tr>
			</table>
		</c:forEach>
		<a class="read-more" href="<spring:url value="/details.html">
			<spring:param name="selectedCategoryId" value="${selectedCategoryId}" />
			<spring:param name="isBestSellers" value="true"/>
			<spring:param name="pageNo" value="1"/>
		</spring:url>"><spring:message code="main.more"/></a>
	</div>
</div>
<p/>
<div class="summary-booklist ui-widget">
	<h1 class="ui-helper-reset ui-widget-header ui-corner-top">
		<spring:message code="main.newestBooks"/>
	</h1>
	<div class="ui-widget-content ui-corner-bottom">
		<c:forEach items="${newestBooks}" var="book">
			<table class="single-book">
				<tr><td><a href="<spring:url value="/book/details.html">
				<spring:param name="bookId" value="${book.id}"/>
				</spring:url>"><img class="book-image" src="${book.image}"/></a></td></tr>
				<tr>
				<td><font class="book-price"><spring:message code="main.price"/><spring:message code="main.price.sign"/>
					${book.unitPrice}</font></td>
				</tr>
				<tr><td class="book-name">${book.name}</td></tr>
			</table>
		</c:forEach>
		<a class="read-more" href="<spring:url value="/details.html">
			<spring:param name="selectedCategoryId" value="${selectedCategoryId}" />
			<spring:param name="isBestSellers" value="false"/>
			<spring:param name="pageNo" value="1"/>
		</spring:url>"><spring:message code="main.more"/></a>
	</div>
</div>